#ifndef FIXEDUNIT_H
#define FIXEDUNIT_H

#include "unit.h"
#include "QDateTime"
#include <QDebug>

class FixedUnit : public Unit
{
public:
    FixedUnit();
    FixedUnit(QRect &geometry);
    ~FixedUnit();

    QDateTime getCreationTime();
    int getSecondsLasting();
    
    void init();
    void loadPixmaps();
    void setCreationTime(QDateTime time);
    void setSecondsLasting(int seconds);
    virtual void serializeDebug(QDebug &dbg);
    virtual void serializeIn(QDataStream &in);
    virtual void serializeOut(QDataStream &out);

private:
    QDateTime m_creationTime;
    int m_secondsLasting;

protected:
    QString m_sprite;

};

#endif // FIXEDUNIT_H
